package jp.co.sn.mml.pojo.tsttjdhkcmt;


public class TsttjdhkcmtId implements java.io.Serializable { 

	//検査群
	private String ksKbn;
	//項目コード
	private String itemCd;

	/** default constructor */
	public TsttjdhkcmtId(){

	}

	/** full constructor */
	public TsttjdhkcmtId(String ksKbn,String itemCd){
		this.ksKbn = ksKbn;
		this.itemCd = itemCd;
	}

	//Property accessors
	public String getKsKbn(){
		return this.ksKbn;
	}

	public void setKsKbn(String ksKbn){
		this.ksKbn=ksKbn;
	}

	public String getItemCd(){
		return this.itemCd;
	}

	public void setItemCd(String itemCd){
		this.itemCd=itemCd;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TsttjdhkcmtId))
			return false;

		TsttjdhkcmtId castOther = (TsttjdhkcmtId) other;

		return ((this.getKsKbn() ==  castOther.getKsKbn())
				||(this.getKsKbn()!=null && castOther.getKsKbn() !=null 
					&& castOther.getKsKbn() !=null 
					&& this.getKsKbn().equals(castOther.getKsKbn())))
			&& ((this.getItemCd() ==  castOther.getItemCd())
				||(this.getItemCd()!=null && castOther.getItemCd() !=null 
					&& castOther.getItemCd() !=null 
					&& this.getItemCd().equals(castOther.getItemCd())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getKsKbn() == null ? 0 : this.getKsKbn().hashCode());
		result = 37 * result
				+ (getItemCd() == null ? 0 : this.getItemCd().hashCode());
		return result;
	}

}